Release 10.1A: OpenEdge Development:
Programming Interfaces
bproxsdto4gl utility
The
bproxsdto4gltool is a command line utility that extracts the definition of a table or data set from an XML Schema file (.xsdfile) and converts it to a static 4GL temp-table or static ProDataSet definition. By default, the definition is saved as a 4GL include file (.ifile).
-hDisplay a help message on the use of this utility.
xml-schema-filenameThe name of the XML Schema file containing the schema to convert into a 4GL definition.
xml-schema-filenamecan contain absolute or relative path information.-output {output-directory|filename}Overrides the default behavior for the generated 4GL include file. If not specified, the utility names the output file after the source
.xsdfile (xsd-filename.i)and saves the file to the current directory. To use the default name, but specify a different directory, supply an absolute or relative path. To change the name of the file, specify it and include any necessary absolute or relative path information.-elementelement-nameThe top-level element declaration (the element’s name) from the XML Schema file that identifies the table or data set that will be the source of the conversion to a 4GL temp-table or ProDataSet definition.
-overridemappingOverride the default data type mapping between XML Schema string and binary types when generating 4GL field definitions from XML Schema. The XML Schema string data type maps to a
CHARACTERfield by default, and the XML Schemabase64BinaryandhexBinarydata types map to aRAWfield by default. If you specifyoverridemapping, XML Schema string will map to aCLOBfield, and XML Schemabase64BinaryorhexBinarywill map to aBLOBfield.-fieldtypemapping {field-mapping-file|field-mapping-string}A string containing a comma-separated list of fieldname and data type pairs, or a file that contains the comma-separated list. This option allows you to specify the Progress data type for a specific field from the XML Schema. See Appendix D, "XML Reference of Data Type and Code Page mappings," for more information on the default data type mapping between XML Schema and the 4GL.
Here is the syntax for the string or file containing the pairs.
If there are multiple buffers defined in the XML Schema, the
fieldnamemust be qualified with the buffer name from the XML Schema:
data-typemust be a valid Progress data type for a temp-table field. For example:CLOB,BLOB,DATETIME, and so on.
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |